# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :celery.py
# @Time      :2022/6/8 19:25
# @Author    :张志坤


# celery
from celery import Celery

app = Celery('worker', broker='redis://127.0.0.1:6379/5', backend='redis://127.0.0.1:6379/6')

# 任务函数的位置
app.autodiscover_tasks(['common.celery_tasks.send_code.sms_code'])
